package com.zjitc.dao;

import com.zjitc.model.Comment;
import com.zjitc.model.Pay;
import com.zjitc.model.Product;
import java.lang.reflect.Parameter;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/5/2 16:50
 * @description:
 */
public interface ProductDao {


  int checkName(String name);

  int pushProduct(Product product);

  List<Product> productAll();

  Product showProduct(Integer id);

   void delete(Integer id);

   List<Comment> showComment(Integer pid);

   void comment(@Param("com") String com, @Param("pid")Integer pid,@Param("id")Integer id);

  Product findproductById(Integer id);

  int updateProduct(Product product);

  void payAdd(@Param("money") String money, @Param("username") String username, @Param("imageName") String imageName);
}
